import React from "react"

class HelloClassComponent extends React.Component {
  // 自定义参数
  clickHandle = (e, msg) => {
    console.log('This is click handle\n', msg, e)
  }
  render () {
    return <div onClick={(e) => this.clickHandle(e, 'This is message')}>Hello Class Component</div>
  }
}

function App () {
  return (
    <div>
      <HelloClassComponent></HelloClassComponent>
    </div>
  )
}

export default App
